]> dgit.raspbian.org Git - gnome-shell.git/commit
loginDialog: fix cancel button in ask for username mode
authorMichael Catanzaro <mcatanzaro@gnome.org>
Sat, 10 Sep 2016 17:55:20 +0000 (12:55 -0500)
committerMichael Catanzaro <mcatanzaro@gnome.org>
Sat, 10 Sep 2016 21:50:53 +0000 (16:50 -0500)
commitcae4d92191f00d53afd4dd28d366b347a4d65027
treecc4867d2a1f3c31e6bcb62514eab524718c0d514
parentf336295475bb6ede0a3a4b5394720ba07b81b9d9
loginDialog: fix cancel button in ask for username mode

If the user clicks Not Listed? to enter ask for username mode, clicks
cancel, and then attempts to log in via the user list, the user will see
"Authentication failed" after correctly typing the password, and then
will become stuck in an empty screen with just the gray noise background.

The problem is, we forgot to disconnect from the signal that's waiting
for the next button to be pressed on the username entry screen. Since
the signal handler that executes here is expecting the username to be
input, and isn't prepared for us to have switched back to user list,
various bad things happen. We try to start two gdm-password
conversations at once, for instance, one using the user's password as
the username. I stopped investigating here, because it's easy to fix by
disconnecting from the signal at the right time.

https://bugzilla.gnome.org/show_bug.cgi?id=770328
js/gdm/loginDialog.js